package com.longxi.tianjintianbao.ui.activity.main;

import android.widget.TextView;

import com.longxi.tianjintianbao.R;
import com.longxi.tianjintianbao.ui.base.BaseActivity;
import com.longxi.tianjintianbao.ui.presenter.main.PersonalDataAtPresenter;
import com.longxi.tianjintianbao.ui.view.main.IPersonalDataAtView;
import com.longxi.tianjintianbao.widget.LeftRightView;

import butterknife.BindView;

public class PersonalDataActivity extends BaseActivity<IPersonalDataAtView, PersonalDataAtPresenter> implements IPersonalDataAtView {
    @BindView(R.id.tvHead)
    LeftRightView mTvHead;
    @BindView(R.id.tvUsername)
    LeftRightView mTvUsername;
    @BindView(R.id.tvPhone)
    LeftRightView mTvPhone;
    @BindView(R.id.tvSex)
    LeftRightView mTvSex;
    @BindView(R.id.tvBirth)
    LeftRightView mTvBirth;

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_personal_data;
    }

    @Override
    public void initData() {
        super.initData();
        mPresenter.setBar();
        mPresenter.setUiData();
    }

    @Override
    public void initListener() {
        super.initListener();
    }

    @Override
    protected PersonalDataAtPresenter createPresenter() {
        return new PersonalDataAtPresenter(this);
    }

    @Override
    public LeftRightView getTvHead() {
        return mTvHead;
    }

    @Override
    public LeftRightView getTvUsername() {
        return mTvUsername;
    }

    @Override
    public LeftRightView getTvPhone() {
        return mTvPhone;
    }

    @Override
    public LeftRightView getTvSex() {
        return mTvSex;
    }

    @Override
    public LeftRightView getTvBirth() {
        return mTvBirth;
    }
}
